import 'dart:convert';

import 'package:fluro/fluro.dart';

import 'package:flutter_popcorntime/models/json/video_data_json.dart';
import 'package:flutter_popcorntime/pages/video_detail_page/video_detail_page.dart';

var videoDetailPageHandler = Handler(handlerFunc: (context, params) {
  final String videoDataJson = params["data"]!.first;
  print(videoDataJson);
  final VideoData videoData = VideoData.fromJson(json.decode(videoDataJson));
  return VideoDetailPage(videoData: videoData);
});
